<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title> Moment.js 源码举例 </title>
</head>
<div>


    <a href="https://www.cnblogs.com/MrZhujl/p/11398704.html">参考 </a>

</div>


<body>


<script src="../extend/moment.js"></script>

<script>

    var now = moment();
    console.log(now);
    var day = moment("1995-12-25");
    console.log(day);

    let jsDate = moment().toDate();
    console.log(jsDate.getFullYear());


    console.log(moment().format("YYYY-MM-DD")); // 格式化显示当前时间


    console.log(moment().format('llll'));


    let calendar = moment().calendar();
    console.log(calendar);

    let calendarStr = moment().add(10, 'days').calendar();
    console.log(typeof calendarStr);


</script>


</body>
</html>
